nonlinux_utime
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Fri, 9 Feb 2018 13:40:07 +0000 (13:40 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Fri, 9 Feb 2018 13:40:07 +0000 (13:40 +0000)
Gbp-Pq: Name nonlinux_utime.diff

qmake/library/ioutils.cpp

index 684bcb9a371415c99deee323759f3e5c05924f9e..a493320138be8ddfcebff73a6be18365c31c13c8 100644 (file)
@@ -215,7 +215,7 @@ bool IoUtils::touchFile(const QString &targetFileName, const QString &referenceF
         *errorString = fL1S("Cannot stat() reference file %1: %2.").arg(referenceFileName, fL1S(strerror(errno)));
         return false;
     }
-#    if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L
+#    if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L && defined(UTIME_NOW)
     const struct timespec times[2] = { { 0, UTIME_NOW }, st.st_mtim };
     const bool utimeError = utimensat(AT_FDCWD, targetFileName.toLocal8Bit().constData(), times, 0) < 0;
 #    else